package com.lhq.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lhq.common.annotation.Excel;
import com.lhq.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * 标签分类对象 lhq_tag
 *
 * @author lhq
 * @date 2024-05-07
 */
@TableName("lhq_tag")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Tag extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    @TableField(exist = false)
    List<Tag> subTags;
    /** $column.columnComment */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    /** 上一级标签id */
    @Excel(name = "上一级标签id")
    @TableField("parent_id")
    private String parentId;
    /** 标签名 */
    @Excel(name = "标签名")
    @TableField("name")
    private String name;
    /** 排序号 */
    @Excel(name = "排序号")
    @TableField("order_num")
    private Long orderNum;

}
